/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.edu.kamai.xml.beans.writing;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author xyzhu
 */
public class writingAnswer {
    
    public writingAnswer(int totalQuestionCnt){
        writingContent = new ArrayList<String>();
        for(int i=0;i<totalQuestionCnt;i++){
            writingContent.add(i, "");
        }
    }
    
    public writingAnswer(){
        
    }

    public int getPaperID() {
        return paperID;
    }

    public void setPaperID(int paperID) {
        this.paperID = paperID;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public List<String> getWritingContent() {
        return writingContent;
    }

    public void setWritingContent(List<String> writingContent) {
        this.writingContent = writingContent;
    }
    
    public void setWritingContent(int index,String content){
        //writingContent.get(index) = content;
        //writingContent.add(index, content);
        writingContent.set(index, content);
    }
    
    public String getWritingContent(int index){
        return writingContent.get(index);
    }

    private int paperID;
    private String userID;
    private List<String> writingContent;
}
